package com.yixq.soa.service.web.mapper;

import org.apache.ibatis.annotations.SelectProvider;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;

import tk.mybatis.mapper.common.Mapper;

public interface PageMapper<T> extends Mapper<T> {
	/**
	 * 使用PageBounds进行分页查询
	 * @param example
	 * @param pageBounds
	 * @return
	 */
	@SelectProvider(type=PageProvider.class,method = "dynamicSQL") 
	PageList<T> selectByPageBounds(Object example,PageBounds pageBounds);
}
